<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>
    首页！！！首页！！！首页！！！首页！！！
    <br>

</h1>
{#<table border="1">#}
{#    <thead>#}
{#        <tr>#}
{#            <th>学生姓名</th>#}
{#            <th>成绩等级</th>#}
{#        </tr>#}
{#    </thead>#}
{#    <tbody>#}
{#        <tr>#}
{#            <th>{{ name }}</th>#}
{#            <th>#}
{#                {% if score >= 90 %}#}
{#                    A#}
{#                {% elif score >= 80 and score < 90 %}#}
{#                    B#}
{#                {% elif score >= 70 and score < 80 %}#}
{#                    C#}
{#                {% elif score >= 60 and score < 70 %}#}
{#                    D#}
{#                {% elif  score < 60 %}#}
{#                    E#}
{#                {% endif %}#}
{#            </th>#}
{#        </tr>#}
{#    </tbody>#}
{#</table>#}
<br>
<hr>
<form method="post" action="/search/">
    搜索：<input type="text" name="goodname" id="goodname" placeholder="请输入你要搜索的内容"><input type="submit" value="搜索" >
</form>
<hr>
<table border="1" width="100%">
    <thead>
        <tr>
            <th>商品序号</th>
            <th>商品名称</th>
            <th>商品图片</th>
            <th>商品价格</th>
            <th>商品数量</th>
        </tr>
    </thead>
    <tbody>
    {% for shop in shops %}
        <tr>
            <th>{{ shop.gid }}</th>
            <th>{{ shop.g_name }}</th>
            <th><img src={{ shop.g_img }} width="100px" height="100px"></th>
            <th>{{ shop.g_price }}</th>
            <th>{{ shop.g_num }}</th>
            </th>
        </tr>
    {% endfor %}
    </tbody>

</table>
    <p style="text-align: center">
        {% for pages in pages %}
        <a href="/index?page={{ pages }}">{{ pages }}</a>
        {% endfor %}
    </p>
</body>
</html>